{% extends "base.html" %}

{% block title %}Log in{% endblock %}

{% block content %}

<h1>Log in</h1>

{% if form.errors %}
<p class="error">Please correct the errors below:</p>
{% endif %}

<form method="post" action="?next={{ next|default:"/brispone/" }}">
{% csrf_token %}
  <table>
      <tr> 
        <td>
        <label for="id_username">Mobile number </label>
        {% if form.username.errors %}
          <p class="errors">{{ form.username.errors.as_text }}</p>
        {% endif %}
        </td>
        <td>
          {{ form.username }}
        </td>
      </tr>
      <tr>
        <td>
        <label for="id_password">Password:</label>
        {% if form.email.errors %}
          <p class="errors">{{ form.email.errors.as_text }}</p>
        {% endif %}
        </td>
        <td>
        {{ form.password }}
        </td>
      </tr>
      <tr>
        <td></td>
        <td>
        <p class="submit"><input type="submit" value="Log In &rarr;"></p>
        </td>
      </tr>
    </table>
</form>
{% endblock %}

{% block content-related %}
<p>If you don't have an account, you can <a href="/accounts/register/">sign
up</a> for one.
{% endblock %}